package components
{
	import UIFree.controls.uif_checkbox;
	import UIFree.controls.uif_label;
	import UIFree.uif_component;
	import UIFree.uif_ecomponent;
	
	import flash.geom.Rectangle;
	
	public class c_checkboxLabel extends uif_ecomponent {
		private var _label	: uif_label;
		private var _cb		: uif_checkbox;
		public function c_checkboxLabel(parent:uif_component, ax:int=0, ay:int=0, awidth:int=0, aheight:int=0, styleClass:Object='') {
			super(parent, ax, ay, awidth, aheight, styleClass);
			createComponents();
		}
		
		protected function createComponents(): void {
			var rect: Rectangle = getInner();
			_cb = new uif_checkbox(this, rect.x, rect.y, rect.height, rect.height, 'checkbox');
			rect.left += rect.height;
			_label = new uif_label(this, rect.x, rect.y, rect.width, rect.height, 'desc');
		}
		
		public function get label(): uif_label {
			return _label;
		}
		
		public function get checkbox(): uif_checkbox {
			return _cb;
		}
	}
}